﻿@{
    ViewBag.Title = "Index";
    Layout = Settings.DefaultLayout();
}

<h2>Login</h2>
@if (!string.IsNullOrEmpty(ViewBag.Msg))
{ 
    <div class="row alert">
        <div class="span6">
            @ViewBag.Msg
        </div>
    </div>
}
@if (Session["username"] != null)
{
    <div class="row label label-success">
        <div class="span6">
            Welcome @Session["username"] to LeadCRM
        </div>
    </div>
}

@using (Html.BeginForm())
{ 
    <div class="row">
        <div class="span3">
            Username:
        </div>
        <div class="span3">
            @Html.TextBox("Username")
        </div>
    </div>
    <div class="row">
        <div class="span3">
            Password:
        </div>
        <div class="span3">
            @Html.Password("Password")
        </div>
    </div>
    <div class="row">
        <div class="span6">
            <input type="submit" class="btn" value="Login" />
        </div>
    </div>
}